package com.hiwhitley.easy.day05;

/**
 * Created by hiwhitley on 2016/8/5.
 */
public class Solution6 {
    public static int Fibonacci(int n) {
        if (n == 0)
            return 0;
        if (n == 1 || n == 2)
            return 1;
        return Fibonacci(n - 1) + Fibonacci(n - 2);
    }

    public static void main(String[] args) {
        for (int i = 0; i < 6; i++) {
            System.out.println(Fibonacci(i));
        }
    }
}
